<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/font.css">
    <style>
        .box {
            width: 150px;
            height: 150px;
            background-color: skyblue;
        }
        .box::after {
            /* display: none; */
            content: '';
            width: 150px;
            height: 150px;
        }
        .box:hover {
            display: block;
            background-color: rgba(0, 0, 0, .1);
        }

        .test1 {
            position: relative;
            width: 100px;
            height: 30px;
            background-color: rosybrown;
            line-height: 30px;
        }
        .test1::after {
            position: absolute;
            right: 10px;
            /* content: ''; */
            content: '\ea42';
            font-family: 'icomoon';

        }
    </style>
</head>
<body>
    <div class="box"></div>
    <div class="test1">小熊呀</div>

</body>
</html>